RtReadPortBufferUchar
RtReadPortBufferUshort
RtReadPortBufferUlong

RtReadPortBuffer* calls copy data from an I/O port to a buffer until the buffer has been filled using a number of bytes that you specify for each read operation.

Syntax

VOID RtReadPortBufferUchar(
    PUCHAR PortAddress,
    PUCHAR pBuffer,
    ULONG Count
);
VOID RtReadPortBufferUshort(
    PUSHORT PortAddress,
    PUSHORT pBuffer,
    ULONG Count
);
VOID RtReadPortBufferUlong(
    PULONG PortAddress,
    PULONG pBuffer,
    ULONG Count
);

Parameters

PortAddress

A Port I/O address cast as a pointer to the type of data being read.

pBuffer

A pointer to a buffer.

Count

The the number of bytes to be read at one time. Acceptable values are 1, 2, and 4.

Remarks

RtReadPortBufferUchar, RtReadPortBufferUshort, and RtReadPortBufferUlong read data from an I/O port to a buffer, 1, 2, or 4 bytes at a time, until the buffer is full.

Requirements

Minimum Supported Version RTX64 2013
Header Rtapi.h
Library RtApi.lib (Windows), Rtx_Rtss.lib (RTSS)

See Also:

RtDisablePortIo

RtEnablePortIo

RtReadPort* (Uchar, Ushort, Ulong)

RtWritePortBuffer* (Uchar, Ushort, Ulong)

RtWritePort* (Uchar, Ushort, Ulong)